/**
 * 收藏详细信息的接口
 */
import my_requests from "@/plugins/request";

/**
 * 查询全部_articleCollectionDetail信息
 */
export function get_articleCollectionDetailInfo(queryData){
    return my_requests({
        url: '/articleCollectionDetail',
        method: 'get',
        params:queryData
    })
}

/**
 * 查询是否收藏  根据当前登录的用户名userName,查询是否点赞此文章articleId
 * @param queryData
 *      queryData = {
 *         collector: userName,
 *         articleId: this.articleAllInfo.articleId
 *       }
 */
export function get_IsStar(queryData){
    return my_requests({
        url: '/articleCollectionDetail/isStar',
        method: 'get',
        params:queryData
    })
}


/**
 * 查询单个_articleCollectionDetail信息
 */
export function get_articleCollectionDetailInfoById(Id){
    return my_requests({
        url: '/articleCollectionDetail/'+Id,
        method: 'get',
    })
}


/**
 * 查询全部_articleLikeDetail信息  无分页
 */
export function get_articleStarDetailInfoNoPage(queryData){
    return my_requests({
        url: '/articleCollectionDetail/noPageALL',
        method: 'get',
        params:queryData
    })
}



/**
 * 新增_articleCollectionDetail信息
 */
export function add_articleCollectionDetailInfo(data){
    return my_requests({
        url: '/articleCollectionDetail',
        method: 'post',
        data:data
    })
}


/**
 * 修改_articleCollectionDetail信息
 */
export function modify_articleCollectionDetailInfo(data){
    return my_requests({
        url: '/articleCollectionDetail',
        method: 'put',
        data:data
    })
}


/**
 * 删除_articleCollectionDetail信息
 */
export function delete_articleCollectionDetailInfo(id){
    return my_requests({
        url: '/articleCollectionDetail/'+id,
        method: 'delete',
    })
}

/**
 * 删除_articleLikeDetail信息
 */
export function deleteStarByUserNameAndArticleId(data){
    return my_requests({
        url: '/articleCollectionDetail/deleteStarByUserNameAndArticleId',
        method: 'post',
        data:data
    })
}

/**
 * 批量删除_articleCollectionDetail信息
 */
export function delete_articleCollectionDetailInfoBatch(idArr){
    return my_requests({
        url: '/articleCollectionDetail/deleteBatch',
        method: 'post',
        data:idArr
    })
}



